home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / squota-0.01 / squota-0~ / Squota / quotavars < prev    next >
Text File  |  1996-05-07  |  1KB  |  30 lines

  1. #!/bin/bash
  2. # Squota - Screwed Quota        Copyright (c) 1996    Gary Barrueto
  3. ##############################################################################
  4. # HQ, FSLIMIT and WHATDIR is the only varibles you can modify
  5. ##############################################################################
  6. # so users can check their daily quota, the following should be added to
  7. # /etc/profile :
  8. # /usr/local/bin/Sqcheck
  9. ##############################################################################
  10. # HQ - where Squota resides
  11. HQ=/var/adm/Squota
  12. # $FSLIMIT is the # of megabytes you allow.. 
  13. # next release of this script will calculate $ due if over $FSLIMIT (average)
  14. FSLIMIT=5
  15. # WHATDIR is where user homes reside
  16. # you must have an entry in /etc/passwd as a defined home dir for a user
  17. # since I use '~' to "cd" into directories.
  18. WHATDIR=/home
  19. ##############################################################################
  20. # There is no need to edit below this line....
  21. ##############################################################################
  22. # $MON is the suffix of each file, this chages to Abbrev. of each month
  23. MON=`date +%b`
  24. # $DAY is the # of days to divide by to get average
  25. DAY=`date +%d`
  26. # I need a variable set it zero
  27. EMPTY=0
  28. # $PULENGTH sets # of users...
  29. PULENGTH=`echo \`wc -l $HQ/quota.users\` | cut -d" " -f1`
  30.